package cn.tedu.knows.portal;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
//下面注解编写之后,mybatis会自动扫描指定包下所有接口和类
//相当于为当前包中所有类和接口自动添加@mapper注解
@MapperScan("cn.tedu.knows.portal.mapper")
public class KnowPortalApplication {

    public static void main(String[] args) {
        SpringApplication.run(KnowPortalApplication.class, args);
    }

}
